<template>
  <div class="Home">
    <div class="top">
      <van-nav-bar
        title="购物车"
        left-text="返回"
        right-text="编辑"
        left-arrow
      />
    </div>
    <div class="probox">
      <div class="prodata">
        <div class="swipe-cell">
          <van-swipe-cell>
            <div class="pro-desc">
              <div class="left">
                <van-radio-group>
                  <van-radio name="1" checked-color="#ee0a24"></van-radio>
                </van-radio-group>
              </div>
              <div class="center">
                <img
                  src="../assets/icon/img1.png"
                  alt=""
                  width="100px"
                  height="100px"
                />
              </div>
              <div class="right">
                <div class="name-rule">【山东】金秋红蜜桃</div>
                <div class="proprice">
                  <div class="price">￥57.80</div>
                  <div class="count">x 22</div>
                </div>
              </div>
            </div>
          </van-swipe-cell>
        </div>
      </div>
      <div class="prodata">
        <div class="swipe-cell">
          <van-swipe-cell>
            <div class="pro-desc">
              <div class="left">
                <van-radio-group>
                  <van-radio name="1" checked-color="#ee0a24"></van-radio>
                </van-radio-group>
              </div>
              <div class="center">
                <img
                  src="../assets/icon/pg.png"
                  alt=""
                  width="100px"
                  height="100px"
                />
              </div>
              <div class="right">
                <div class="name-rule">【山西】红富士苹果</div>
                <div class="proprice">
                  <div class="price">￥34.80</div>
                  <div class="count">x 5</div>
                </div>
              </div>
            </div>
          </van-swipe-cell>
        </div>
      </div>
      <div class="prodata">
        <div class="swipe-cell">
          <van-swipe-cell>
            <div class="pro-desc">
              <div class="left">
                <van-radio-group>
                  <van-radio name="1" checked-color="#ee0a24"></van-radio>
                </van-radio-group>
              </div>
              <div class="center">
                <img
                  src="../assets/icon/img1.png"
                  alt=""
                  width="100px"
                  height="100px"
                />
              </div>
              <div class="right">
                <div class="name-rule">【河北】红袖添香甄西瓜</div>
                <div class="proprice">
                  <div class="price">￥39.90</div>
                  <div class="count">x 1</div>
                </div>
              </div>
            </div>
          </van-swipe-cell>
        </div>
      </div>
      <div class="prodata">
        <div class="swipe-cell">
          <van-swipe-cell>
            <div class="pro-desc">
              <div class="left">
                <van-radio-group>
                  <van-radio name="1" checked-color="#ee0a24"></van-radio>
                </van-radio-group>
              </div>
              <div class="center">
                <img
                  src="../assets/icon/mi.jpeg"
                  alt=""
                  width="100px"
                  height="100px"
                />
              </div>
              <div class="right">
                <div class="name-rule">【湖南】洞口五彩米</div>
                <div class="proprice">
                  <div class="price">￥136.00</div>
                  <div class="count">x 1</div>
                </div>
              </div>
            </div>
          </van-swipe-cell>
        </div>
      </div>
    </div>

    <div class="bottom">
      <div class="pay">
        <van-submit-bar :price="0" button-text="结算" >
          <van-checkbox v-model="checked">全选</van-checkbox>
        </van-submit-bar>
      </div>
    </div>
     <van-tabbar v-model="active">
        <van-tabbar-item icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item icon="qr">分类</van-tabbar-item>
        <van-tabbar-item icon="shopping-cart-o">购物车</van-tabbar-item>
        <van-tabbar-item icon="manager-o">我的</van-tabbar-item>
      </van-tabbar>
  </div>
</template>
<script src="https://www.jq22.com/jquery/vue2.5.22.min.js"></script>
<script>
export default {
  data() {
    return {
      active: "1",
      checked: true,
    };
  },
  creted() {},
  methods: {},
};
</script>

<style lang="less" scoped>
/deep/.van-tabbar-item--active{
  color: #C64242;
}
/deep/.van-checkbox__icon--checked .van-icon{
  background-color: #C64242;
  border-color: #C64242;
}
/deep/.van-nav-bar .van-icon{
  color: #C64242;
}
/deep/.van-nav-bar__text{
  color: #C64242;
}
/deep/.van-submit-bar{
  margin-bottom: 20px;
  position: absolute;
  bottom: 28px;
}
.Home {
  height: 700px;
  width: 375px;
  background-color: #fff;
}
.pro-desc {
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #cccc;
}
.left {
  margin-top: 30px;
  margin-left: 10px;
}
.center {
  background-color: #f8f8f8;
  margin-left: 10px;
  margin-bottom: 10px;
}
.right {
  margin-left: 10px;
}
.name-rule {
  font-weight: bold;
  font-size: 16px;
}
.proprice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 50px;
  .price {
    font-weight: bold;
    color: red;
    font-size: 14px;
  }
  .count {
    color: #afafaf;
    font-size: 14px;
    margin-left: 100px;
    margin-top: 4px;
  }
}
</style>